{% extends 'bootstrap-modal-layout.html.twig' %}

{% set modal_class = 'modal-lg' %}

{% block title %}
	{{'course_manage.batch_create.title'|trans({'%taskName%':setting('course.task_name')|default('admin.setting_course.task'|trans)})}}
{% endblock %}

{% do script([cloud_sdk_url('uploader'), 'libs/jquery-sortable.js', 'app/js/course-manage/batch-create/index.js']) %}

{% block body %}
  {% set mediaType = 'video' %}
  {% include 'file-chooser/parts/upload-file.html.twig' %}
{% endblock %}

{% block footer %}
  <button type="button" class="btn btn-link" data-dismiss="modal">{{'form.btn.cancel'|trans}}</button>
  <button type="button" class="btn btn-primary js-batch-create-lesson-btn" data-valid-url="{{ path('course_manage_lesson_valid_num', {courseId:courseId}) }}"
          data-url="{{ path('course_manage_lesson_batch_create', {courseId:courseId, mode: mode}) }}" data-loading-text="{{ 'upload.content_title.uploading_tips'|trans }}">{{'form.btn.add'|trans}}</button>
{% endblock %}
